#include<stdio.h>
int main()
{
    int n,i=0;
    scanf("%d",&n);
    int sum=0;
    while(i<n)
    {
        int num;
        scanf("%d",&num);
        if(num>=-10&&num<=10)
        {
            sum+=num;
        }
        i++;
    }
    printf("%d",sum);
}